package com.xxx.controller;

import com.xxx.common.Result;
import com.xxx.feignclient.BackGroundClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dish")
public class DishController {
    @Autowired
    private BackGroundClient backGroundClient;

    @GetMapping("/list")
    public Result getDish(Long id){
        Result result = backGroundClient.getDish(id);
        return result;
    }

}
